
public class test {
	public static void main(String args[]) {
		worker staff=new worker();
		staff.setName("赵，");staff.setAge(23);
		staff.setSex("男，");  staff.setApartment("后勤部");
		staff.setMonthSalary(2000);
		System.out.println(staff.toString()+staff.toString1());
		administrator staff1=new administrator();
		staff1.setName("钱，");staff1.setAge(33);
		staff1.setSex("女");  staff1.setWork("经理");
		staff1.setYearSalary(360000);
		System.out.println(staff1.toString()+staff1.toString1());
	}
}
